Magnetic fields are present in a large variety of stars across the Hertzsprung-Russell diagram, during all evolutionary stages from pre-main sequence stars, to main sequence stars and evolved stars, up to the final stages when the star explodes as a supernova.